package tmp;
import tools.TestUtil;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

/**
 * @author LXC
 */
public class JustTest {

//    public static <AnyType extends Comparable<? super AnyType>> AnyType test(AnyType i){
//        return i;
//    }

    public <AnyType> int test(AnyType i){
        return 2;
    }

    public static void  main(String[] args) throws NoSuchMethodException, IOException, InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException {
        String inputFilePath=JustTest.class.getClassLoader().getResource("a.txt").getPath();
        String expectedResultFilePath=JustTest.class.getClassLoader().getResource("b.txt").getPath();
        TestUtil<Integer> tu= new TestUtil<>();
        boolean result=tu.isTestPass(inputFilePath,expectedResultFilePath,"tmp.JustTest","test");
//        boolean result=true;
        if(result){
            System.out.println("测试通过");
        }
        else {
            System.out.println("测试未通过");
        }
    }
}
